package com.itany.mybatis.entity;

import java.util.List;

/**
 * Description: 类的描述
 * Author: liudaolin@itany.com
 * Date: 2021/07/19 15:58
 * Version: 1.0 版本信息
 */
public class HeroType implements java.io.Serializable {
    private Integer id;
    private String name;

    public HeroType() {
    }

    public HeroType(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "HeroType{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    // HeroType 与 Hero 的关系
    private List<Hero> heroes;

    public List<Hero> getHeroes() {
        return heroes;
    }

    public void setHeroes(List<Hero> heroes) {
        this.heroes = heroes;
    }
}
